import request from '@/utils/request'


export default {

  getTeacherListPage(current, limit, teacherQuery){
    return request({
      url: `/eduService/teacher/pageTeacherCondition/${current}/${limit}`,
      method: 'post',
      data: teacherQuery
    })
  },

  deleteTeacherById(id) {
    return request({
      url: `/eduService/teacher/${id}`,
      method: 'delete',
    })
  },

  addTeacher(teacher){
    return request({
      url: `/eduService/teacher/addTeacher`,
      method: 'post',
      data: teacher
    })
  },
  getTeacherInfo(id){
    return request({
      url: `/eduService/teacher/getTeacher/${id}`,
      method: 'get'
    })
  },
  updateTeacherInfo(id, teacher){
    return request({
      url: `/eduService/teacher/updateTeacher/${id}`,
      method: 'put',
      data: teacher
    })
  },
  // 查询所有讲师
  getTeacherList() {
    return  request({
      url: "/eduService/teacher/findAll",
      method: "get"
    })
  },

}
